package com.yuantu.judiciary.model.api;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 制裁实体详情（根据 name）查询参数表单
 *
 * @author syw
 * @since 2023-07-03
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("制裁实体详情（根据 name）查询参数表单")
public class SanctionByNameDTO {
    @ApiModelProperty("制裁实体名称")
    @NotBlank(message = "制裁实体名称不能为空")
    private String name;
    @ApiModelProperty("授权标识，1 已授权，0 未授权")
    @NotNull(message = "授权标识不能为空")
    private Integer authorize;
    @ApiModelProperty("每页条数（默认 20 条，最大 20 条）")
    @NotNull(message = "每页条数不能为空")
    @Max(value = 20)
    private Integer pageSize;
    @ApiModelProperty("当前页数（默认第 1 页）")
    @NotNull(message = "当前页数不能为空")
    @Min(value = 1)
    private Integer pageNum;
}
